package com.yonyou.ucf.mdf.app.isvdxq.other.model;


import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.Gson;
import com.yonyou.ucf.mdf.app.isvdxq.other.entity.OrgUnitEntity;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrgUnitBean extends OrgUnitEntity {
    private OrgBaseBean salesOrg;
    private OrgBaseBean purchaseOrg;
    private OrgBaseBean qualityOrg;
    private OrgBaseBean financeOrg;
    private OrgBaseBean inventoryOrg;
    private OrgBaseBean adminOrg;


    @Override
    public String toString() {
        return new Gson().toJson(this);
    }

    public void setName(NameBean name) {
        this.name = name.getZh_CN();
    }

    public void setShortname(NameBean shortname) {
        this.shortname = shortname.getZh_CN();
    }

    public void setDescription(NameBean description) {
        this.description = description.getZh_CN();
    }

    public void setAddress(NameBean address) {
        this.address=address.getZh_CN();
    }

    public OrgBaseBean getSalesOrg() {
        return salesOrg;
    }

    public void setSalesOrg(OrgBaseBean salesOrg) {
        this.salesOrg = salesOrg;
    }

    public OrgBaseBean getPurchaseOrg() {
        return purchaseOrg;
    }

    public void setPurchaseOrg(OrgBaseBean purchaseOrg) {
        this.purchaseOrg = purchaseOrg;
    }

    public OrgBaseBean getQualityOrg() {
        return qualityOrg;
    }

    public void setQualityOrg(OrgBaseBean qualityOrg) {
        this.qualityOrg = qualityOrg;
    }

    public OrgBaseBean getFinanceOrg() {
        return financeOrg;
    }

    public void setFinanceOrg(OrgBaseBean financeOrg) {
        this.financeOrg = financeOrg;
    }

    public OrgBaseBean getInventoryOrg() {
        return inventoryOrg;
    }

    public void setInventoryOrg(OrgBaseBean inventoryOrg) {
        this.inventoryOrg = inventoryOrg;
    }

    public OrgBaseBean getAdminOrg() {
        return adminOrg;
    }

    public void setAdminOrg(OrgBaseBean adminOrg) {
        this.adminOrg = adminOrg;
    }
}
